package com.tbs.easyhomemoneyserver.model.dto

import com.fasterxml.jackson.annotation.JsonFormat
import com.tbs.easyhomemoneyserver.constants.CommonConstants
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.io.Serializable
import java.util.*

@ApiModel
data class HomeDTO(
    @ApiModelProperty("家庭组id")
    var id: Long? = null,

    @ApiModelProperty("家庭组名")
    var homeName: String? = null,

    @ApiModelProperty("家庭组创建时间")
    @JsonFormat(pattern = CommonConstants.DATE_FORMAT_yyyyMMddHHmmss)
    var createTime: Date? = null,

    @ApiModelProperty("是否是家长")
    var parentFlag: Int? = null,


    @ApiModelProperty("当前登录会话的家庭组是否是当前")
    var selected: Boolean? = null,

    @ApiModelProperty("家长id")
    var parentId: Long? = null,

    @ApiModelProperty("家长名")
    var parentName: String? = null
) : Serializable {


    companion object {
        private val serialVersionUID = 2999009856292231527L
    }
}
